package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/9/13 12:52
 */
public interface MessageService {


    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> selectAllByAdminidAndState(Integer adminid, Integer state);

    List<Message> selectAllByAdminidAndStateAndIsread(Integer adminid, Integer state, Integer isread);

    Integer countByAdminidAndIsreadAndState(Integer adminid, Integer isread, Integer state);

    List<Message> selectAllByAdminidAndIsreadAndStateOrderByCreatetimeDesc(Integer adminid,Integer isread,Integer state);

}




